package com.leoman.work.entity;

import com.leoman.entity.BaseEntity;
import com.leoman.welfare.entity.Welfare;

import javax.persistence.*;

/**
 * Created by Administrator on 2016/6/14 0014.
 */
@Table(name = "t_works_surround")
@Entity
public class WorkSurround extends BaseEntity {

    @ManyToOne
    @JoinColumn(name = "welfare_id")
    private Welfare welfare;

    @Column(name = "type")
    private Integer type;

    @ManyToOne
    @JoinColumn(name = "work_id")
    private Work work;

    public Welfare getWelfare() {
        return welfare;
    }

    public void setWelfare(Welfare welfare) {
        this.welfare = welfare;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Work getWork() {
        return work;
    }

    public void setWork(Work work) {
        this.work = work;
    }
}
